package com.example.aerospacemanagementsystem.service.logisticsService.impl.impl;


import com.example.aerospacemanagementsystem.entity.logistics.Usage;
import com.example.aerospacemanagementsystem.entity.logistics.Vehicle;
import com.example.aerospacemanagementsystem.mapper.logisticsMapper.UsageMapper;
import com.example.aerospacemanagementsystem.mapper.logisticsMapper.VehicleMapper;
import com.example.aerospacemanagementsystem.service.logisticsService.impl.VehicleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 李铭
* @description 针对表【vehicle】的数据库操作Service实现
* @createDate 2023-11-03 10:29:42
*/
@Service
public class VehicleServiceImpl  implements VehicleService{
    @Autowired
    private VehicleMapper vehicleMapper;

    @Override
    public int add(Vehicle vehicle) {
        return vehicleMapper.insert(vehicle);
    }

    @Override
    public int delete(Vehicle vehicle) {
        return vehicleMapper.delete(vehicle);
    }

    @Override
    public int update(Vehicle vehicle) {
        return vehicleMapper.update(vehicle);
    }

    @Override
    public List<Vehicle> getAllVehicle(Vehicle vehicle) {
        return vehicleMapper.getAllVehicle(vehicle);
    }

}




